home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTStoreData.pas' rev: 3.00
-
- #ifndef AHMTStoreDataHPP
- #define AHMTStoreDataHPP
- #include <AHMSystem.hpp>
- #include <Registry.hpp>
- #include <IniFiles.hpp>
- #include <Dialogs.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysUtils.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtstoredata
- {
- //-- type declarations -------------------------------------------------------
- enum TAHMRootKey { hkeyClassesRoot, hkeyCurrentUser, hkeyLocalMachine, hkeyUsers, hkeyCurrentConfig,
- hkeyDynData };
-
- enum TAHMDatatype { sRegistry, sIniFile };
-
- class DELPHICLASS TAHMRegistry;
- class PASCALIMPLEMENTATION TAHMRegistry : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- TAHMRootKey FRootKey;
- System::AnsiString FSection;
- System::AnsiString FPath;
-
- public:
- __fastcall TAHMRegistry(void);
- __fastcall virtual ~TAHMRegistry(void);
-
- __published:
- __property TAHMRootKey Rootkey = {read=FRootKey, write=FRootKey, default=1};
- __property System::AnsiString Path = {read=FPath, write=FPath};
- __property System::AnsiString Section = {read=FSection, write=FSection};
- };
-
- class DELPHICLASS TAHMIniFile;
- class PASCALIMPLEMENTATION TAHMIniFile : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- System::AnsiString FFilename;
- System::AnsiString FSection;
-
- public:
- __fastcall TAHMIniFile(void);
- __fastcall virtual ~TAHMIniFile(void);
-
- __published:
- __property System::AnsiString Filename = {read=FFilename, write=FFilename};
- __property System::AnsiString Section = {read=FSection, write=FSection};
- };
-
- class DELPHICLASS TAHMDataStore;
- class PASCALIMPLEMENTATION TAHMDataStore : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- bool FEnabled;
- TAHMDatatype FDatatype;
- TAHMRegistry* FRegistry;
- TAHMIniFile* FIniFile;
- Classes::TNotifyEvent FOnError;
- int FErrorInt;
- System::AnsiString FErrorStr;
- bool FErrorBool;
- System::AnsiString __fastcall GetSection(void);
- void __fastcall DoFix(void);
-
- public:
- __fastcall TAHMDataStore(void);
- __fastcall virtual ~TAHMDataStore(void);
- System::AnsiString __fastcall ReadStr(System::AnsiString Key);
- int __fastcall ReadInt(System::AnsiString Key);
- bool __fastcall ReadBool(System::AnsiString Key);
- System::AnsiString __fastcall ReadCrypt(System::AnsiString Key);
- void __fastcall WriteCrypt(System::AnsiString Key, System::AnsiString Value);
- void __fastcall ReadStrs(Classes::TStringList* &Values);
- void __fastcall WriteStr(System::AnsiString Key, System::AnsiString Value);
- void __fastcall WriteInt(System::AnsiString Key, int Value);
- void __fastcall WriteBool(System::AnsiString Key, bool Value);
- void __fastcall DeleteKey(System::AnsiString Key);
- void __fastcall Erase(void);
-
- __published:
- __property int ErrorInt = {read=FErrorInt, write=FErrorInt, nodefault};
- __property System::AnsiString ErrorStr = {read=FErrorStr, write=FErrorStr};
- __property bool ErrorBool = {read=FErrorBool, write=FErrorBool, nodefault};
- __property Classes::TNotifyEvent OnError = {read=FOnError, write=FOnError};
- __property bool Enabled = {read=FEnabled, write=FEnabled, default=1};
- __property TAHMDatatype Datatype = {read=FDatatype, write=FDatatype, default=0};
- __property TAHMRegistry* Registry = {read=FRegistry, write=FRegistry};
- __property TAHMIniFile* Inifile = {read=FIniFile, write=FIniFile};
- };
-
- class DELPHICLASS TAHMStoreData;
- class PASCALIMPLEMENTATION TAHMStoreData : public Ahmsystem::TAHMSystemsComponent
- {
- typedef Ahmsystem::TAHMSystemsComponent inherited;
-
- private:
- Classes::TNotifyEvent FOnError;
- TAHMDataStore* FDataStore;
-
- public:
- __fastcall virtual TAHMStoreData(Classes::TComponent* AOwner);
- __fastcall virtual ~TAHMStoreData(void);
- System::AnsiString __fastcall ReadStr(System::AnsiString Key);
- int __fastcall ReadInt(System::AnsiString Key);
- bool __fastcall ReadBool(System::AnsiString Key);
- System::AnsiString __fastcall ReadCrypt(System::AnsiString Key);
- void __fastcall WriteCrypt(System::AnsiString Key, System::AnsiString Value);
- void __fastcall ReadStrs(Classes::TStringList* &Values);
- void __fastcall WriteStr(System::AnsiString Key, System::AnsiString Value);
- void __fastcall WriteInt(System::AnsiString Key, int Value);
- void __fastcall WriteBool(System::AnsiString Key, bool Value);
- void __fastcall DeleteKey(System::AnsiString Key);
- void __fastcall Erase(void);
-
- __published:
- __property Classes::TNotifyEvent OnError = {read=FOnError, write=FOnError};
- __property TAHMDataStore* DataStore = {read=FDataStore, write=FDataStore};
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern PACKAGE HKEY AHMHKeys[6];
-
- } /* namespace Ahmtstoredata */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtstoredata;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTStoreData
-